<?php
	$title 				= $this->formText('title',$this->Item['title'],array('class'=>'txtmedium'));
	$page 				= $this->formText('page',$this->Item['page'],array('class'=>'txtmedium'));
	$description_html 	= $this->formTextarea('description_html',$this->Item['description_html'],array('rows'=>'10'));
	$keywords_html 		= $this->formTextarea('keywords_html',$this->Item['keywords_html'],array('rows'=>'10'));
	$header				= $this->cmsReplaceString($this->Item['header']);
	$header				= $this->cmsEditor('header',$header,array('toolbar'=>'Default','language'=>'vi'));
	$footer				= $this->cmsReplaceString($this->Item['footer']);
	$footer				= $this->cmsEditor('footer',$footer,array('toolbar'=>'Default','language'=>'vi'));
	
	$contact			= $this->cmsReplaceString($this->Item['contact']);
	$contact			= $this->cmsEditor('contact',$contact,array('toolbar'=>'Default','language'=>'vi'));
	
	$description		= $this->cmsReplaceString($this->Item['description']);
	$description		= $this->cmsEditor('description',$description,array('toolbar'=>'Default','language'=>'vi'));
	
	$options 	= array($this->translate('Inactive'),$this->translate('Active'));
	$valSta 	= $this->Item['status'];
	if($valSta == ''){$valSta = 0;}
	$status 	= $this->formRadio('status',$valSta,null,$options, ' ');
	
	
	$Input = array(
					array('Label'=>$this->translate('Title'),'input'=>$title,'info'=>0),
					array('Label'=>$this->translate('Page'),'input'=>$page,'info'=>0),
					array('Label'=>$this->translate('Status'),'input'=>$status,'info'=>0),
					array('Label'=>$this->translate('Description HTML'),'input'=>$description_html,'info'=>0),
					array('Label'=>$this->translate('Keywords HTML'),'input'=>$keywords_html,'info'=>0),
					array('Label'=>$this->translate('Header'),'input'=>$header,'style'=>'margin-left:175px','info'=>0),
					array('Label'=>$this->translate('Footer'),'input'=>$footer,'style'=>'margin-left:175px','info'=>0),
					array('Label'=>$this->translate('Contact'),'input'=>$contact,'style'=>'margin-left:175px','info'=>0),
					array('Label'=>$this->translate('Description'),'input'=>$description,'style'=>'margin-left:175px','info'=>0),
					);
	if(count($this->errors)>0){
		$errors = $this->formErrors($this->errors,array('id'=>'errors'));
	}
?>
<form name="appForm" method="post" action="" enctype="multipart/form-data">

                        <?php echo $this->render('toolbar.php')?>
                        <div class="clr"></div>
                        <?php echo $this->render('sublink.php')?>
                        
                        <?php echo $errors;?>

                        <!-- BEGIN: CONTENT -->
                        <div id="element-box">
                            <div class="t">
                                <div class="t">
                                    <div class="t"></div>
                                </div>
                            </div>
                            <div class="m">
                                <!-- BEGIN: ELEMENT BOX -->
						<div id="adminfieldset">
                            <div class="adminheader">Detail</div>								
								<?php echo $this->partialLoop('rows.php',$Input);?>                                
							</div>
							
                                <!-- END: ELEMENT BOX -->	
                              <div class="clr"></div>
                            </div>
                            <div class="b">
                                <div class="b">
                                    <div class="b"></div>
                                </div>
                            </div>
                        </div>
                        <!-- END: 	CONTENT -->
                    </form>